<!DOCTYPE html>

<?php
	class Usuari
	{
		protected $_userId;
		protected $_nom;
		protected $_pdp;
		protected $_email;
		protected $_logged;

		
		public function __construct($userId, $nom, $pdp, $email) {
			$this->_userId = $userId;
			$this->_nom = $nom;
			$this->_pdp = $pdp;
			$this->_email = $email;
			$this->_logged = login();
		}
		
		public function comprovarDades(){
			if ($this->_any < 1000 || $this->_any > 2011)
			{
				return false;
			}else{
				return true;
			}
		}
		
		private function login(){
			return false;
				//IR A BASE DE DATOS!
		}
		
	}